<?php $user = Authenticate::UserIdentity(); ?>
<!-- BEGIN HEADER -->   
<div class="header navbar navbar-inverse navbar-fixed-top">
   <!-- BEGIN TOP NAVIGATION BAR -->
   <div class="header-inner">
      <!-- BEGIN LOGO -->  
      <a class="navbar-brand " href="index.html">
      <img src="<!--{SERVER}-->/<!--{TEMPLATE}-->/assets/img/logo_topo_small2.png" alt="logo" class="img-responsive" />
      </a>
      <!-- END LOGO -->
      <?php if(isset($user)): ?>
      <!-- BEGIN RESPONSIVE MENU TOGGLER --> 
      <a href="javascript:;" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
      <img src="<!--{SERVER}-->/<!--{TEMPLATE}-->/assets/img/menu-toggler.png" alt="" />
      </a> 
      <!-- END RESPONSIVE MENU TOGGLER -->
      <!-- BEGIN TOP NAVIGATION MENU -->
      <ul class="nav navbar-nav pull-right">
              
         <!-- BEGIN USER LOGIN DROPDOWN -->
         <li class="dropdown user">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
            <i class="icon-white icon-user"></i>
            <span class="username"><?php echo (isset($user))?$user->name:''; ?></span>
            <i class="icon-angle-down"></i>
            </a>
            <ul class="dropdown-menu">
               <li><a href="<!--{SERVER}-->/Usuario/Perfil/Id/<?php echo (isset($user))?$user->username:''; ?>"><i class="icon-user"></i> Perfil </a>
               </li>
              
               <li><a href="<!--{SERVER}-->/Index/Logout"><i class="icon-off"></i> Sair</a>
               </li>
            </ul>
         </li>
         <!-- END USER LOGIN DROPDOWN -->
      </ul>
       <?php endif; ?>
      <!-- END TOP NAVIGATION MENU -->
   </div>
   <!-- END TOP NAVIGATION BAR -->
</div>
<!-- END HEADER -->